<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/pages/inc/common.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录</title>
<script type="text/javascript">
	function login(){
		var account = document.getElementById('account').value;
		var passwd = document.getElementById('passwd').value;
		if(account ==''){
			alert("请输入账户");
			return false;
		}
		if(passwd == ''){
			alert("请输入密码");
			return false;
		}
		frm.submit();
	}
</script>
</head>
<body>
	<br><br><br><br><br>
	<div>${msg}</div>
	<form action="${contextPath}/userAccount/login" id="frm" method="post">
		<table align="center">
			<tr>
				<td>账号</td>
				<td><input type="text" name="account" id="account"></td>
			</tr>
			<tr>
				<td>密码</td>
				<td><input type="password" name="passwd" id="passwd"></td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<input type="button" value="登录" onclick="login()">
					<input type="button" value="注册" onclick="location.href='${contextPath}/userAccount/forwardEmailRegister'">
					<input type="button" value="手机注册" onclick="location.href='${contextPath}/userAccount/forwardMobileRegister'">
				</td>
			</tr>
		</table>
	</form>
</body>
</html>